package org.example.domain;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @TableName stock_log
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class StockLog implements Serializable {
    /**
     * 雪花算法ID
     */

    private String id;

    /**
     * 仓库位置ID
     */
    private String depositId;

    /**
     * 作物名称
     */
    private String cropName;

    /**
     * 仓库名称
     */
    private String warehouseName;

    /**
     * 盘点数量
     */
    private Integer stockCapacity;

    /**
     * 盘点状态 0 无异常 1 库存异常
     */
    private Integer stockStatus;

    /**
     * 盘点时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime stockLogTime;

    /**
     * 库存容量
     */
    private Integer warehouseNum;

}